import request from '@/utils/request'

// 查询采购明细列表
export function listPurchaseDetail(query) {
  return request({
    url: '/supplier/purchaseDetail/list',
    method: 'get',
    params: query
  })
}

// 查询采购明细详细
export function getPurchaseDetail(query) {
  return request({
    url: '/supplier/purchaseDetail/',
    method: 'get',
    params: query
  })
}

// 新增采购明细
export function addPurchaseDetail(data) {
  return request({
    url: '/supplier/purchaseDetail',
    method: 'post',
    data: data
  })
}

// 修改采购明细
export function updatePurchaseDetail(data) {
  return request({
    url: '/supplier/purchaseDetail',
    method: 'put',
    data: data
  })
}

// 删除采购明细
export function delPurchaseDetail(id) {
  return request({
    url: '/supplier/purchaseDetail/' + id,
    method: 'delete'
  })
}

// 导出采购明细
export function exportPurchaseDetail(query) {
  return request({
    url: '/supplier/purchaseDetail/export',
    method: 'get',
    params: query
  })
}